/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package catchtheeggs;

import java.awt.Color;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 *
 * @author Windows7
 */
public class CatchTheEggs extends JFrame {

    /**
     * @param args the command line arguments
     */
    
    public CatchTheEggs() throws IOException
    {
        theBoard board = new theBoard();
        this.add(board);
        
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(800, 600);
        setLocationRelativeTo(null);
        setTitle("Catch The Eggs");
        setResizable(false);
        setVisible(true);
        
        Thread t = new Thread(board);
        t.start();
    }
    
    public static void main(String[] args) {
        try {
            // TODO code application logic here
            SwingUtilities.invokeAndWait(new Runnable(){
                @Override
                public void run()
                {
                    try {
                        CatchTheEggs game = new CatchTheEggs();
                    } catch (IOException ex) {
                        Logger.getLogger(CatchTheEggs.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    
                }
            });
        } catch (InterruptedException | InvocationTargetException ex) {
            Logger.getLogger(CatchTheEggs.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
